﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cua_Hang.Admin
{
    public partial class Template_Admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.PhanQuyen();
            if (Session["Login"]==null)
            {
                Response.Redirect(" http://localhost:1482/DangNhap.aspx");
                
            }
        }
        //----------------------------------------------------------------
        int Ma;
        void PhanQuyen()
        {
            if (Ma == 2)
            {
                Label1.Visible = true;
            }
            else
            {
                Label1.Visible = false;
            }

        }
        //----------------------------------------------------------------
        
    }
}